Source for file SC_FormParam.php
Documentation is available at SC_FormParam.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$this->check_dir =
IMAGE_SAVE_DIR;
function addParam($disp_name, $keyname, $length=
"", $convert=
"", $arrCheck=
array(), $default=
"", $input_db=
"true") {
// $arrVal :$arrVal['keyname']・・の配列を一致したキーのインスタンスに格納する
// $seq :trueの場合、$arrVal[0]~の配列を登録順にインスタンスに格納する
function setParam($arrVal, $seq =
false) {
if(isset
($arrVal[$val])) {
$this->param[$cnt] =
$arrVal[$cnt];
foreach($this->arrCheck[$cnt] as $val) {
if($val ==
"EXIST_CHECK") {
for($cnt =
0; $cnt <
$count; $cnt++
) {
if($arrVal[$cnt][$keyname] !=
"") {
$this->setValue($key, $arrVal[$cnt][$keyname]);
function setDBDate($db_date, $year_key =
'year', $month_key =
'month', $day_key =
'day') {
list
($y, $m, $d) =
split("[- ]", $db_date);
$this->param[$cnt] =
$param;
foreach($this->arrCheck[$cnt] as $func) {
if (!isset
($this->param[$cnt])) $this->param[$cnt] =
"";
case 'MOBILE_EMAIL_CHECK':
$objErr->doFunc(array($this->disp_name[$cnt], $val), array($func));
for($i =
0; $i <
$max; $i++
) {
$objSubErr->doFunc(array($this->disp_name[$cnt], $i), array($func));
if(count($objSubErr->arrErr) >
0) {
foreach($objSubErr->arrErr as $mess) {
$objErr->arrErr[$val] =
$mess;
$objErr->doFunc(array($this->disp_name[$cnt], $val, $this->length[$cnt]), array($func));
for($i =
0; $i <
$max; $i++
) {
$objSubErr->doFunc(array($this->disp_name[$cnt], $i, $this->length[$cnt]), array($func));
if(count($objSubErr->arrErr) >
0) {
foreach($objSubErr->arrErr as $mess) {
$objErr->arrErr[$val] =
$mess;
$objErr->arrErr[$val] =
"※ " .
$this->disp_name[$cnt] .
"のファイルが存在しません。<br>";
$objErr->arrErr[$val] =
"※※ エラーチェック形式($func)には対応していません ※※ <br>";
if (isset
($objErr->arrErr[$val]) &&
!$br) {
$objErr->arrErr[$val] =
ereg_replace("<br>$", "", $objErr->arrErr[$val]);
* K : 「半角(ハンカク)片仮名」を「全角片仮名」に変換
* C : 「全角ひら仮名」を「全角かた仮名」に変換
* V : 濁点付きの文字を一文字に変換。"K","H"と共に使用します
* n : 「全角」数字を「半角(ハンカク)」に変換
if (!isset
($this->param[$cnt])) $this->param[$cnt] =
"";
for($i =
0; $i <
$max; $i++
) {
if($keyname ==
"" ||
$keyname ==
$val) {
$arrRet[$val] = isset
($this->param[$cnt]) ?
$this->param[$cnt] :
"";
$arrRet[$val] = isset
($this->param[$cnt]) ?
$this->param[$cnt] :
"";
foreach($arrKey as $keyname) {
for($i =
0; $i <
$max; $i++
) {
$arrRet[$i][$keyname] =
$arrVal[$i];
$arrRet[$val]['keyname'] =
$this->keyname[$cnt];
$arrRet[$val]['length'] =
$this->length[$cnt];
if (isset
($this->param[$cnt])) {
$arrRet[$val]['value'] =
$this->param[$cnt];
if (!isset
($this->param[$cnt])) $this->param[$cnt] =
"";
if($this->default[$cnt] !=
"" &&
$this->param[$cnt] ==
"") {
$arrRet[$val]['value'] =
$this->default[$cnt];
$ret = isset
($this->param[$cnt]) ?
$this->param[$cnt] :
"";
$this->param[$cnt] =
sfSplitCheckBoxes($this->param[$cnt]);
Documentation generated on Tue, 28 Apr 2009 18:13:17 +0900 by phpDocumentor 1.4.2